<?php

	require('includes/connect.php');

	$gender = $_POST['gender'];

	$date = $_POST['dd']."-".$_POST['mm']."-".$_POST['yy'];

	$mobNo = $_POST['stdCode']."-".$_POST['phNo'];

	$location = $_POST['location'];

	$user_id = $_POST['user_id'];

	$qry = mysql_query("update users set `gender` = '$gender', `birthdate` = '$date', `mobNo` = '$mobNo', `location` = '$location' where user_id=".$user_id);


	header('location:settings.php');




?>